package com.team.h;

import com.team.arms.SmartArmsApplication8081;
import com.team.arms.bingyi.domain.BingyiRegistInfo;
import com.team.arms.bingyi.mapper.BingyiRegistInfoMapper;
import com.team.arms.bingyi.service.BingyiRegistInfoService;
import com.team.arms.political.domain.vo.Policenvo;
import com.team.arms.political.mapper.PoliReviewInfoMapper;
import com.team.arms.political.service.PoliReviewInfoService;
import com.team.arms.xitong.service.IRoleService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import javax.annotation.Resource;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Set;

/**
 * @Author huazige
 * @Date 2022/5/9 17:46
 * @Version 1.0
 */
@SpringBootTest(classes = SmartArmsApplication8081.class)
@RunWith(SpringRunner.class)
public class test1 {
    @Resource
    PoliReviewInfoMapper poliReviewInfoMapper;

    @Autowired
    BingyiRegistInfoMapper bingyiRegistInfoMapper;

    @Autowired
    BingyiRegistInfoService bingyiRegistInfoService;
    @Autowired
    IRoleService iRoleService;

    @Autowired
    PoliReviewInfoService poliReviewInfoService;

    @Test
    public void selectpltc() {
        List<Policenvo> list = poliReviewInfoMapper.selectall(null);
//
        for (Policenvo policenvo : list
        ) {
            System.out.println(policenvo.getAge());

        }
    }
    @Test
    public void test() {
       List<BingyiRegistInfo> list = bingyiRegistInfoService.list();
      /*  List<Role> list1 = iRoleService.list();
        List<PoliReviewInfo> list1 = poliReviewInfoService.list();*/
        //test
    }

  /*  @Test
    public void selectpltc() {
        com.baomidou.mybatisplus.core.conditions.query.QueryWrapper<entity.SysHealthExamination> QueryWrapper = new QueryWrapper<>();
        QueryWrapper.eq("examine_id", towndto.getExamineId());
        entity.SysHealthExamination sysHealthExamination = sysHealthExaminationMapper.selectOne(QueryWrapper);
      }*/
    @Test
    public void test3() {

                Set<String> ha = new HashSet<String>();
                ha.add("one ");
                ha.add("two ");
                ha.add("three ");
                ha.add("two ");
                Iterator it = ha.iterator();
                while(it.hasNext()){
                    System.out.println(it.next());
                }
                ha.remove("three ");
                System.out.println("删除后");
                Iterator it2=ha.iterator();
                while(it2.hasNext()){
                    System.out.println(it2.next());

                }


    }
    @Test
    public void test4(){
        Set set = new HashSet();
        set.add(456);
        set.add(123);
        set.add(123);
        set.add("AA");
        set.add("CC");
        set.add(369);

        Iterator iterator = set.iterator();
        while (iterator.hasNext()){
            System.out.println(iterator.next());
        }

    }


}
